﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using myschoolDal;

namespace school
{
    public partial class stumysources : Form
    {
        private string term;
        private long ID;
        public stumysources()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            ID = admin.loginId;
            if (comboBox1.Text != "")
            {
                term = comboBox1.SelectedItem.ToString();
                stuservers.StuGetScores(term, ID);
                dataGridView1.DataSource = stuservers.StuGetScores(term, ID).Tables[0].DefaultView;
            }
            else
            {
                MessageBox.Show("错误：" + bug.Class1.worng4001, "提示");
            }

        }
    }
}
